package com.hliushi.learn.bean;

import java.util.Date;

public class BookLend {
    /**
    * 流水号
    */
    private Long sernum;

    /**
    * 图书号
    */
    private Long bookId;

    /**
    * 读者卡号
    */
    private Integer readerId;

    /**
    * 借出日期
    */
    private Date lendDate;

    /**
    * 归还日期
    */
    private Date backDate;

    public Long getSernum() {
        return sernum;
    }

    public void setSernum(Long sernum) {
        this.sernum = sernum;
    }

    public Long getBookId() {
        return bookId;
    }

    public void setBookId(Long bookId) {
        this.bookId = bookId;
    }

    public Integer getReaderId() {
        return readerId;
    }

    public void setReaderId(Integer readerId) {
        this.readerId = readerId;
    }

    public Date getLendDate() {
        return lendDate;
    }

    public void setLendDate(Date lendDate) {
        this.lendDate = lendDate;
    }

    public Date getBackDate() {
        return backDate;
    }

    public void setBackDate(Date backDate) {
        this.backDate = backDate;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", sernum=").append(sernum);
        sb.append(", bookId=").append(bookId);
        sb.append(", readerId=").append(readerId);
        sb.append(", lendDate=").append(lendDate);
        sb.append(", backDate=").append(backDate);
        sb.append("]");
        return sb.toString();
    }
}